class MainController < ApplicationController

	  def index
		case params[:id]
			
		   when '1'
		   
			@comments=Comment.a
			#@comment_pages, @comments = paginate :comments, :per_page => 10
			@element_id=1
			@new_shake=0
			render :partial=>'index', :comments=> @comments,:news_shake=>0, :layout=>"main"
		   
		    when '2'
			
			@comment_pages, @comments = paginate :comments, :per_page => 10
			@element_id=1
			@new_shake=0
			render :partial=>'test/index', :comments=> @comments,:news_shake=>0, :layout=>"main"
		end          

	end

end
